﻿<Page x:Class="OptionsPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Options" AllowDrop="True">

    <StackPanel Style="{StaticResource AppFont}">
        <TextBlock Style="{StaticResource PageTitle}">Options</TextBlock>
        <FlowDocumentScrollViewer Style="{StaticResource FlowDocumentScrollViewerStyle}" MaxWidth="800">
            <FlowDocument>
                <BlockUIContainer>
                    <StackPanel>
                        <CheckBox Name="cbxRequireConnection">
                            <TextBlock TextWrapping="Wrap">
                                Redirect to the "Connection" page (instead of the page you requested)
                                if the content comes from the database and you aren't connected.
                            </TextBlock>
                        </CheckBox>
                        <TextBlock Margin="30,10,0,0" Style="{StaticResource TextBlockStatusWarning}" TextWrapping="Wrap">
                            If you turn this option on, you will be able to visit all the pages in the demo even if you haven't
                            connected to the database. Expect to encounter errors, though.
                        </TextBlock>
                        <TextBlock Margin="5"></TextBlock>
                        <CheckBox Name="cbxAutoResizeMap">
                            <TextBlock TextWrapping="Wrap">
                                Regenerate the Virtual Earth map when the area for the map changes.
                            </TextBlock>
                        </CheckBox>
                        <TextBlock Margin="30,10,0,0" Style="{StaticResource TextBlockStatusWarning}" TextWrapping="Wrap">
                            If you turn this option on, the map will always fill up the available area.
                            However, this can cause the application to run more slowly.
                        </TextBlock>
                        <TextBlock Margin="5"></TextBlock>
                        <TextBlock>Select the icon you'd like to use for photos on the map</TextBlock>
                        <StackPanel Margin="30,10,0,0" >
                            <RadioButton Name="rdoDefault">Virtual Earth pushpin</RadioButton>
                            <RadioButton Name="rdoBlue">
                                <Image Name="imgBluePin" Stretch="None"></Image>
                            </RadioButton>
                            <RadioButton Name="rdoRed">
                                <Image Name="imgRedPin" Stretch="None"></Image>
                            </RadioButton>
                        </StackPanel>
                    </StackPanel>
                </BlockUIContainer>
            </FlowDocument>
        </FlowDocumentScrollViewer>
    </StackPanel>
</Page>
